print('run in lua')
base = Base:new(WHITE)
print('base color: '..base:GetColor())
base:SetColor(YELLOW)
print('set color: '..base:GetColor())
base:delete()

derive = Derive:new()
print('derive color: '..derive:GetColor())
derive:SetColor(RED)
print('derive set color: '..derive:GetColor())

point = derive:GetPoint()
print(point.x)
print(point.y)
point.x = 2
point.y = 3
point = derive:GetPoint()
print(point.x)
print(point.y)

point = Point:new()
point.x = 5
point.y = 4
derive:SetPoint(point)
point2 = derive:GetPoint()
print(point2.x)
print(point2.y)


